import Cookies from 'js-cookie'

const TokenKey = 'Admin-Three-Token'
const isRemberKey = 'rember-Three-Token'

export {isRemberKey}

export function getToken(tokenVal = TokenKey) {
  return Cookies.get(tokenVal)
}

export function setToken(token,tokenVal = TokenKey) {
  return Cookies.set(tokenVal, token)
}

export function removeToken(tokenVal = TokenKey) {
  return Cookies.remove(tokenVal)
}
